import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: () => import('../views/LoginView.vue')
  },
  {
    path: '/index',
    name: 'index',
    component: ()=> import('../views/indexView.vue')
  },
  {
    path: '/blog',
    name: 'blog',
    component: ()=>import('../views/BlogManagement.vue')
  },
  {
    path: '/question',
    name: 'question',
    component: ()=>import('../views/QuestionManagement.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
